package com.banmao.mall.mapper;

import com.banmao.mall.model.pojo.Ad;
import com.banmao.mall.model.vo.admin.promote.advertising.AdItemsBean;
import com.banmao.mall.model.vo.client.index.BannerVO;

import java.util.List;

public interface AdMapper {
    int deleteById(Integer id);

    int insert(Ad record);

    int insertSelective(Ad record);

    Ad selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Ad record);

    int updateByPrimaryKey(Ad record);

    List<BannerVO> selectAllAd();

    List<AdItemsBean> selectAdList(Integer start, Integer limit, String sort, String order, String name, String content);

    Integer selectAdTotal(Integer start, Integer limit, String sort, String order, String name, String content);

}